<%-- 
  - Author: Sergey Manoylo
  - Date: 10-March-2012
  - Copyright Notice: TRAKHEES
  - Description: form.jsp
 --%>

<%@ include file="/WEB-INF/view/include.jsp"%>

<div id="MainDetails">

	
	<fieldset>
	 	<legend><spring:message code="ctn.noc.emp.det.label" /></legend>
	</fieldset>
	
	<div class="t_form-top">
		<div class="t_select_employee">
			<label for="employeeId" ><spring:message code="message.employee.id" /></label>
			<input type="text" id="employeeId" name="employeeId" value="${nocAndLettersModel.employeeId}" readonly="readonly" />
		</div>
	</div>
	
	<div class="t_form-left">
		<label for="empNameEn"><spring:message code="ctn.employee.name" /></label>
		<input type="text" id="employeeNameEng" name="employeeNameEng"  disabled="disabled" />
		
		<label for="empNationality"><spring:message code="ctn.employee.nationality" /></label>
		<input type="text" id="employeeNationality" name="employeeNationality" disabled="disabled" />
	</div>
	
	<div class="t_form-right">
		<label for="employeeNameArab"><spring:message code="ctn.employee.name.ar" /></label>
		<input type="text" id="employeeNameArab" name="employeeNameArab" disabled="disabled" />
		
		<label for="secNumber"><spring:message code="ctn.employee.cec.no" /></label>
		<input type="text" id="employeeCecNumber" name="employeeCecNumber" disabled="disabled" />
	</div>
	
	<fieldset>
	 	<legend><spring:message code="ctn.noc.subm.label" /></legend>
	</fieldset>
	
	<div class="t_form-left">
		<form:label path="textFormat" ><spring:message code="ctn.noc.text.format" /></form:label>
		<form:select path="textFormat" id ="textFormat" disabled="true">
			<form:option value=""></form:option>
			<form:option value="English"><spring:message code="language.en" /></form:option>
			<form:option value="Arabic"><spring:message code="language.ar" /></form:option>
		</form:select>

		<form:label path="nocAndLetters" ><spring:message code="ctn.noc.noc.sc.let" /></form:label>
        <c:choose>
			<c:when	test='${requestScope.requestContextAttribute.locale.language == "ar"}'>
				<form:select path="nocAndLetters" items="${nocLettersList}" itemLabel="labelAr" itemValue="id" disabled="true">
				</form:select>
			</c:when>
			<c:otherwise>
				<form:select path="nocAndLetters" items="${nocLettersList}" itemLabel="labelEn" itemValue="id" disabled="true">
				</form:select>
			</c:otherwise>
		</c:choose>	
		
		<div>
		<div><form:label path="to" ><spring:message code="ctn.noc.to" /><span class="required-field"><spring:message code="label.field.required" /></span></form:label></div>
		<div><form:input path="to" maxlength="30" disabled="true"/></div>
		</div>
		
		<div>
		<div><form:label path="location" ><spring:message code="ctn.noc.location" /><span class="required-field"><spring:message code="label.field.required" /></span></form:label></div>
		<div><form:input path="location" maxlength="30" disabled="true"/></div>
		</div>		

		<form:label path="signature" ><spring:message code="ctn.noc.sign" /></form:label>
        <c:choose>
			<c:when	test='${requestScope.requestContextAttribute.locale.language == "ar"}'>
				<form:select path="signature" items="${signatureList}" itemLabel="labelAr" itemValue="id" disabled="true">
				</form:select>
			</c:when>
			<c:otherwise>
				<form:select path="signature" items="${signatureList}" itemLabel="labelEn" itemValue="id" disabled="true">
				</form:select>
			</c:otherwise>
		</c:choose>			
	</div>
	
	<div class="t_form-right">
		<c:if test="${not empty nocAndLettersModel.country}">
			<div>
				<div><form:label path="country"><spring:message code="ctn.noc.country" /></form:label></div>
	               <c:choose>
					<c:when	test='${requestScope.requestContextAttribute.locale.language == "ar"}'>
						<div><form:select path="country" items="${countryList}" itemLabel="labelAr" itemValue="id" disabled="true"/></div>
					</c:when>
					<c:otherwise>
						<div><form:select path="country" items="${countryList}" itemLabel="labelEn" itemValue="id" disabled="true"/></div>
					</c:otherwise>
				</c:choose>
			</div>
		</c:if>
		
		<c:if test="${not empty nocAndLettersModel.period}">
			<div >
				<div><form:label path="period" ><spring:message code="ctn.noc.period" /></form:label></div>
				<div><form:input path="period" maxlength="30" disabled="true"/></div>
			</div>
		</c:if>
		
		<c:if test="${not empty nocAndLettersModel.lostText}">
			<div >
				<div><form:label path="lostText" ><spring:message code="ctn.noc.losttext" /></form:label></div>
				<div><form:input path="lostText" maxlength="50" disabled="true"/></div>
			</div>
		</c:if>
		
		<c:if test="${not empty nocAndLettersModel.plateNo}">
			<div>
				<div><form:label path="plateNo" ><spring:message code="ctn.noc.plateno" /></form:label></div>
				<div><form:input path="plateNo" maxlength="10" disabled="true"/></div>
			</div>
		</c:if>
		
		<c:if test="${not empty nocAndLettersModel.carOwner}">
			<div>
				<div><form:label path="carOwner" ><spring:message code="ctn.noc.carowner" /></form:label></div>
				<div><form:input path="carOwner" maxlength="20" disabled="true"/></div>
			</div>
		</c:if>
		
		<c:if test="${not empty nocAndLettersModel.carType}">
			<div>
				<div><form:label path="carType" ><spring:message code="ctn.noc.cartype" /></form:label></div>
				<div><form:input path="carType" maxlength="10" disabled="true"/></div>
			</div>
		</c:if>
		
		<c:if test="${not empty nocAndLettersModel.carColor}">
			<div >
				<div><form:label path="carColor" ><spring:message code="ctn.noc.carcolour" /></form:label></div>
				<div><form:input path="carColor" maxlength="10" disabled="true"/></div>
			</div>
		</c:if>
		
		<c:if test="${not empty nocAndLettersModel.machineNo}">
			<div>
				<div><form:label path="machineNo" ><spring:message code="ctn.noc.machineno" /></form:label></div>
				<div><form:input path="machineNo" maxlength="15" disabled="true"/></div>
			</div>
		</c:if>
		
		<c:if test="${not empty nocAndLettersModel.shasyNo}">
			<div>
				<div><form:label path="shasyNo" ><spring:message code="ctn.noc.shohyno" /></form:label></div>
				<div><form:input path="shasyNo" maxlength="15" disabled="true"/></div>
			</div>
		</c:if>
		
		<c:if test="${not empty nocAndLettersModel.carModel}">
			<div>
				<div><form:label path="carModel" ><spring:message code="ctn.noc.carmodel" /></form:label></div>
				<div><form:input path="carModel" maxlength="10" disabled="true"/></div>
			</div>
		</c:if>
	</div>
	
	
	<div id="fm-submit"><button type="button" id="OKButton" class="button_small" onclick="window.location='${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}/admin/general/all/request/show.htm';"><spring:message code="button.ok" /></button></div>

</div>